home *** CD-ROM | disk | FTP | other *** search
/ Clickx 31 / Clickx 31.iso / assets / software / MyServer-win32-0.8.2.exe / web / documentation / texts / fastcgi.htm < prev    next >
Encoding:
Extensible Markup Language  |  2005-06-22  |  2.8 KB  |  87 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  3.   "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  5. <head>
  6. <title>MyServer Documentation - FastCGI - www.myserverproject.net</title>
  7. <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  8. <meta http-equiv="Content-Style-Type" content="text/css" />
  9. <link rel="stylesheet" type="text/css" href="../style/myserver.css" />
  10. </head>
  11. <body>
  12. <table class="center" width="95%">
  13. <tr>
  14. <td class="center">
  15. <h1 class="title">FASTCGI<br />
  16. </h1>
  17. FastCGI is an extension to CGI, not dependent to the language
  18. used, providing high performance for applications, by not using server
  19. specific APIs. In FastCGI, you won't have a separate process for every
  20. script request. The communication with the MyServer process happens trough 
  21. sockets.
  22. <br />
  23. <br />
  24. You can use FastCGI in MyServer, simply by setting the <a
  25.  href="mimetypes.html" class="code">MIME Type</a> for your script
  26. language to run as
  27. FastCGI (set as <span class="code">RUNFASTCGI</span><span
  28.  style="color: rgb(0, 102, 0);"></span>).<br />
  29. <br />
  30. Read the <a class="code" href="php.html">PHP</a> section
  31. on how using PHP+FastCGI.<br />
  32. <br />
  33. Like in CGI, you can place a <span class="code">cgi-bin</span>
  34. directory in the <span class="code">web</span> directory in MyServer
  35. as
  36. seen below, and put all your applications on it:<br />
  37. <br />
  38. <br />
  39.       <div style="text-align: center;"><img src="../images/myfiles.png" title=""
  40.  alt="Web folder" height="260" width="468" style="border: 1px solid #000000" /> 
  41.         <br />
  42. </div>
  43. <div style="text-align: center;"><small>The cgi-bin folder is directly
  44. beneath the selected web folder.</small><br />
  45. </div>
  46. <br />
  47. <br />
  48. <br />
  49. However, CGI scripts can be placed anywhere as it is mapped to the web
  50. server through its extension. <br />
  51. <br />
  52. <br />
  53.  
  54. <h2 class="title">Remote FastCGI Servers</h2>
  55. MyServer has the capability of using a remote FastCGI server.
  56. The following MIME type uses a remote connection:<br />
  57.  
  58. <span class="code">
  59. <MIMETYPE><br />
  60. <EXT>php</EXT><br />
  61. <MIME>text/html</MIME><br />
  62. <CMD>RUNFASTCGI</CMD><br />
  63. <br />
  64. <MANAGER>@host:port</MANAGER><br />
  65. </MIMETYPE><br />
  66. </span>
  67. <br />
  68. The definition for a remote manager must begin with @.<br />
  69.  
  70. If you are configuring the MIME types through the Control center
  71. application, you can add a remote server by adding a line in the form<br />
  72. <span class="code">@HOST:PORT </span>
  73. in the FastCGI path field.<br />
  74.  
  75.  
  76. <br />
  77. <br />
  78. Please refer to the official <a href="http://www.fastcgi.com/"
  79.  target="_blank">FastCGI </a>site for
  80. more information about FastCGI.<br />
  81. <br />
  82. </td>
  83. </tr>
  84. </table>
  85. </body>
  86. </html>
  87.